package cn.school.system.domain;

import java.math.BigDecimal;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.school.common.annotation.Excel;
import cn.school.common.core.domain.BaseEntity;

/**
 * 佣金明细信息对象 bi_commission
 *
 * @author asheng
 * @date 2023-12-25
 */
@Data
public class BiCommission extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 订单id */
    @Excel(name = "订单id")
    private String orderId;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    /** 佣金金额 */
    @Excel(name = "佣金金额")
    private BigDecimal amount;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodName;

    /** 店铺id */
    @Excel(name = "店铺id")
    private Long shopId;

    /** 店铺电话 */
    @Excel(name = "店铺电话")
    private String shopPhone;

    /** 微信openid */
    @Excel(name = "微信openid")
    private String openid;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("status", getStatus())
            .append("amount", getAmount())
            .append("goodName", getGoodName())
            .append("shopId", getShopId())
            .append("shopPhone", getShopPhone())
            .toString();
    }
}
